package com.dylan.datacollection.net;

import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Call;
import okhttp3.Response;

/**
 * Created by dylan on 2018/3/30.
 */

public class ResponseCallback extends Callback {
    @Override
    public Object parseNetworkResponse(Response response, int id) throws Exception {
        return new String(response.body().string());
    }

    @Override
    public void onError(Call call, Exception e, int id) {

    }

    @Override
    public void onResponse(Object response, int id) {

    }
}
